Color Values in a Color Set
The array of color values in a color set object can have up to 65,535 entries; each entry must be of one of the types defined in thegxSetColor
union:
union gxSetColor{ gxCMYKColor cmyk; gxRGBColor rgb; gxRGBAColor rgba; gxHSVColor hsv; gxHLSColor hls; gxXYZColor xyz; gxYXYColor yxy; gxLUVColor luv; gxLABColor lab; gxYIQColor yiq; gxColorValue gray; gxGrayAColor graya; unsigned short pixel16; unsigned long pixel32; gxColorValue component[4]; };ThegxSetColor
union is an abbreviated color structure (see page 4-53). It has noprofile
orspace
fields, because individual colors within a color set cannot have different color spaces, and because the color profiles for the color values are defined elsewhere--in the individual colors, bitmaps, or transfer modes that use this color set. Also, thegxSetColor
union has nogxIndexedColor
field because color sets cannot be recursive (that is, colors in a color set cannot refer to colors in other color sets).